package com.sline.scanner;

import java.util.Scanner;

public class Demo1_Scanner {
    public static  void main(String[] args) {
        Scanner sc = new Scanner(System.in);        // 键盘录入

//        int i = sc.nextInt();
//        System.out.print(i);

        if (sc.hasNextInt()) {
            int i = sc.nextInt();
            System.out.print(i);
        } else {
            System.out.print("输入的类型错误");
        }
    }
}
